package com.hksj.sglm.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hksj.base.vo.DeviceVO;
import com.hksj.common.config.annotation.DS_TAOS;
import com.hksj.sglm.query.OxygenConcentrationQuery;
import com.hksj.sglm.query.OxygenConcentrationTrendQuery;
import com.hksj.sglm.vo.ConcentrationTrendVO;
import com.hksj.sglm.vo.OxygenConcentrationVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OxygenConcentrationMapper {
    DeviceVO deviceLocation(String id);

    List<OxygenConcentrationVO> queryDeviceList(Page<OxygenConcentrationVO> page, @Param("query") OxygenConcentrationQuery query);

    @DS_TAOS
    List<ConcentrationTrendVO> selectConcentrationTrendById(@Param("tableName") String tableName, @Param("deviceId") String deviceId, @Param("section") int section);

    @DS_TAOS
    List<ConcentrationTrendVO> queryConcentrationTrendById(@Param("pageNum") int pageNum, @Param("pageSize") Integer pageSize, @Param("tableName") String tableName, @Param("deviceId") String deviceId, @Param("section") Integer section);

    @DS_TAOS
    List<ConcentrationTrendVO> queryCountById(@Param("tableName") String tableName, @Param("deviceId") String deviceId, @Param("section") Integer section);
}
